import request from '../utils/request'

// 获取汉字的所有可能拼音
export function getCharacterPinyinList(character) {
  return request({
    url: '/pronunciation/pinyin',
    method: 'get',
    params: { character }
  })
}

// 更新段落中的汉字拼音
export function updateParagraphPinyin(data) {
  return request({
    url: `/pronunciation/paragraph`,
    method: 'post',
    data: data
  })
}